<template>
    <div class="app">
        <room-area :itemdata="highScore"></room-area>
    </div>
</template>
<script setup>
// 1.获取数据 从App中
import highScore from './data/high_score.json'
import RoomArea from './components/RoomArea.vue'
// console.log(highScore)
// 2.模拟网络请求数据
// import { ref } from "vue"
// const highScore = ref({})
// setTimeout(() => {
//     import("./data/high_score.json").then(res => {
//         console.log(res.default)
//         History.value=res.default
//     })
// }, 1000)
</script>
<style scoped lang="less">
.app {
    width: 1032px;
    margin: 0 auto;
    padding: 40px;
}
</style>